//
//  Example.m
//  CslpodDictionary
//
//  Created by gtts on 13-4-24.
//  Copyright (c) 2013年 cslpod. All rights reserved.
//

#import "Example.h"

@implementation ExampleDAO

const static NSString* tablename = @"dic_example";//表名

+ (Class)getBindingModelClass
{
    return [Example class];
}

+(const NSString *)getTableName
{
    return tablename;
}

@end

@implementation Example
@synthesize sentenceID;
@synthesize sentence;
@synthesize audioPath;

- (id)init
{
    self = [super init];
    if (self) {
        self.primaryKey = @"sentenceID";
    }
    return self;
}

- (id)initWithJsonDictionary:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        self.sentenceID = [dic objectForKey:@"sentenceID"];
        self.sentence = [dic objectForKey:@"sentence"];
        self.audioPath = [dic objectForKey:@"audioPath"];
    }
    return self;
}

@end
